using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ResetMove : StateMachineBehaviour
{


    public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)
    {
        Rigidbody2D r = animator.GetComponentInParent<Rigidbody2D>();
        r.velocity = Vector3.zero;
        Character character = animator.GetComponentInParent<Character>();
        character.velocity_Y = 0;
        character.direction = Vector2.zero;
        character.Run = false;
    }

}
